package com.yanmaohu.nikita.data.structure;

import com.yanmaohu.nikita.data.Type;
import com.yanmaohu.nikita.data.TypeModifier;
import com.yanmaohu.nikita.data.expression.NameExpression;

/**
 * @author Bright Lee
 */
public final class Structure extends Type {

    private StructureBody structureBody;

    public Structure(TypeModifier typeModifier, NameExpression structureName, StructureBody structureBody) {
        super(typeModifier, structureName);
        this.structureBody = structureBody;
    }

    public int getEndIndex() {
        return structureBody.getEndIndex();
    }

    public StructureBody getStructureBody() {
        return structureBody;
    }

}
